﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="UserSyncLogDetail_Grid_CompanyChanged.aspx.vb" Inherits="Map.UserSyncLogDetail_Grid_CompanyChanged" %>

<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>	
    	<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

		<link rel="stylesheet" type="text/css" href="/_grid/map_grid.css">
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_nav/menu.js"></script>		
</head>
	<body MS_POSITIONING="GridLayout" onload="_Query()" style="background-color:White;width:100%">
		<table style="FONT-SIZE: 9pt;" height="100%" cellSpacing="0" cellPadding="0" width="100%">
			<tr height="1" valign =top>
				<td>
					<mnu:AppGridMenu id="appGridMenu" runat="server" />
				</td>
			</tr>
			<tr>
				<td>
					<cnt:AppGrid id="appGrid" runat="server" filter='' MultiSelect="false"  />
				</td>
			</tr>
		</table>
	</body>
</html>

<script type="text/javascript" >
    // 触发查询事件
    function _Query()
    {
        var strFilter = '<filter type="and">'
            strFilter += '    <condition attribute="LDAPSynclogGUID" operator="eq" datatype="varchar" value="' + __oid.value + '"/>'
            strFilter += '</filter>'
        
        appGrid.frameElement.filter = strFilter;
        appGrid.frameElement.Query();
    }
    
    function openEditWin()
    {
        // 选中行对象数组
        var arrTr = appGrid.frameElement.getSelected();
        if (!arrTr) return;

        // 打开第一个选中行
        var oid = arrTr[0].oid;
        var sPath = "User_Edit.aspx?mode=2&oid=" + escape(oid); 		// 只需要修改这里即可
        openMyWin(sPath);
    }    
</script>